<template>
  <div class="wall-index">
    <top-bar></top-bar>
    <router-view></router-view>
    <foot-bar-vue> 
      <lg-button-vue size="max" :nom="secondary">确定</lg-button-vue>
    </foot-bar-vue>
  </div>
</template>

<script>
import topBar from '@/components/TopBar.vue'
import FootBarVue from '@/components/FootBar.vue'
import LgButtonVue from '@/components/LgButton.vue'
import { signIpApi } from '@/api';
export default {
    data(){
        return{
            aaa:''
        }
    },
    components:{
        //组件
        topBar,
        FootBarVue,
        LgButtonVue
    },
    computed:{

    },
    created(){
      this.getUser()
    },
    methods:{
      getUser(){
        signIpApi().then((res)=>{
          // console.log(res)
          let user={
            id:res.ip
          }
          this.$store.commit('getUser',user)
        })
      }
    }

}
</script>

<style lang="less" scoped>

</style>